package org.budo.support.slf4j.logger.console;

import org.slf4j.Logger;
import org.slf4j.Marker;

/**
 * @author Phoenix
 */
public class BudoSlf4jConsoleLogger implements Logger {
    private String name;

    public BudoSlf4jConsoleLogger(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public boolean isTraceEnabled() {
        return true;
    }

    @Override
    public void trace(String msg) {
        System.err.println(msg);
    }

    @Override
    public void trace(String format, Object arg) {
        System.err.println(format + arg);
    }

    @Override
    public void trace(String format, Object arg1, Object arg2) {
        System.err.println(format + arg1 + arg2);
    }

    @Override
    public void trace(String format, Object... arguments) {
        System.err.println(format + arguments);
    }

    @Override
    public void trace(String msg, Throwable t) {
        System.err.println(msg);
        t.printStackTrace();
    }

    @Override
    public boolean isTraceEnabled(Marker marker) {
        return true;
    }

    @Override
    public void trace(Marker marker, String msg) {
        System.err.println(marker + msg);
    }

    @Override
    public void trace(Marker marker, String format, Object arg) {
        System.err.println(marker + format + arg);
    }

    @Override
    public void trace(Marker marker, String format, Object arg1, Object arg2) {
        System.err.println(marker + format + arg1 + arg2);
    }

    @Override
    public void trace(Marker marker, String format, Object... argArray) {
        System.err.println(marker + format + argArray);
    }

    @Override
    public void trace(Marker marker, String msg, Throwable t) {
        System.err.println(marker + msg);
        t.printStackTrace();
    }

    @Override
    public boolean isDebugEnabled() {
        return true;
    }

    @Override
    public void debug(String msg) {
        System.err.println(msg);
    }

    @Override
    public void debug(String format, Object arg) {
        System.err.println(format + arg);
    }

    @Override
    public void debug(String format, Object arg1, Object arg2) {
        System.err.println(format + arg1 + arg2);
    }

    @Override
    public void debug(String format, Object... arguments) {
        System.err.println(format + arguments);
    }

    @Override
    public void debug(String msg, Throwable t) {
        System.err.println(msg);
        t.printStackTrace();
    }

    @Override
    public boolean isDebugEnabled(Marker marker) {
        return true;
    }

    @Override
    public void debug(Marker marker, String msg) {
        System.err.println(marker + msg);
    }

    @Override
    public void debug(Marker marker, String format, Object arg) {
        System.err.println(marker + format + arg);
    }

    @Override
    public void debug(Marker marker, String format, Object arg1, Object arg2) {
        System.err.println(marker + format + arg1 + arg2);
    }

    @Override
    public void debug(Marker marker, String format, Object... arguments) {
        System.err.println(marker + format + arguments);
    }

    @Override
    public void debug(Marker marker, String msg, Throwable t) {
        System.err.println(marker + msg);
        t.printStackTrace();
    }

    @Override
    public boolean isInfoEnabled() {
        return true;
    }

    @Override
    public void info(String msg) {
        System.err.println(msg);
    }

    @Override
    public void info(String format, Object arg) {
        System.err.println(format + arg);
    }

    @Override
    public void info(String format, Object arg1, Object arg2) {
        System.err.println(format + arg1 + arg2);
    }

    @Override
    public void info(String format, Object... arguments) {
        System.err.println(format + arguments);
    }

    @Override
    public void info(String msg, Throwable t) {
        System.err.println(msg);
        t.printStackTrace();
    }

    @Override
    public boolean isInfoEnabled(Marker marker) {
        return true;
    }

    @Override
    public void info(Marker marker, String msg) {
        System.err.println(marker + msg);
    }

    @Override
    public void info(Marker marker, String format, Object arg) {
        System.err.println(marker + format + arg);
    }

    @Override
    public void info(Marker marker, String format, Object arg1, Object arg2) {
        System.err.println(marker + format + arg1 + arg2);
    }

    @Override
    public void info(Marker marker, String format, Object... arguments) {
        System.err.println(marker + format + arguments);
    }

    @Override
    public void info(Marker marker, String msg, Throwable t) {
        System.err.println(marker + msg);
        t.printStackTrace();
    }

    @Override
    public boolean isWarnEnabled() {
        return true;
    }

    @Override
    public void warn(String msg) {
        System.err.println(msg);
    }

    @Override
    public void warn(String format, Object arg) {
        System.err.println(format + arg);
    }

    @Override
    public void warn(String format, Object... arguments) {
        System.err.println(format + arguments);
    }

    @Override
    public void warn(String format, Object arg1, Object arg2) {
        System.err.println(format + arg1 + arg2);
    }

    @Override
    public void warn(String msg, Throwable t) {
        System.err.println(msg);
        t.printStackTrace();
    }

    @Override
    public boolean isWarnEnabled(Marker marker) {
        return true;
    }

    @Override
    public void warn(Marker marker, String msg) {
        System.err.println(marker + msg);
    }

    @Override
    public void warn(Marker marker, String format, Object arg) {
        System.err.println(marker + format + arg);
    }

    @Override
    public void warn(Marker marker, String format, Object arg1, Object arg2) {
        System.err.println(marker + format + arg1 + arg2);
    }

    @Override
    public void warn(Marker marker, String format, Object... arguments) {
        System.err.println(marker + format + arguments);
    }

    @Override
    public void warn(Marker marker, String msg, Throwable t) {
        System.err.println(marker + msg);
        t.printStackTrace();
    }

    @Override
    public boolean isErrorEnabled() {
        return true;
    }

    @Override
    public void error(String msg) {
        System.err.println(msg);
    }

    @Override
    public void error(String format, Object arg) {
        System.err.println(format + arg);
    }

    @Override
    public void error(String format, Object arg1, Object arg2) {
        System.err.println(format + arg1 + arg2);
    }

    @Override
    public void error(String format, Object... arguments) {
        System.err.println(format + arguments);
    }

    @Override
    public void error(String msg, Throwable t) {
        System.err.println(msg);
        t.printStackTrace();
    }

    @Override
    public boolean isErrorEnabled(Marker marker) {
        return true;
    }

    @Override
    public void error(Marker marker, String msg) {
        System.err.println(marker + msg);
    }

    @Override
    public void error(Marker marker, String format, Object arg) {
        System.err.println(marker + format + arg);
    }

    @Override
    public void error(Marker marker, String format, Object arg1, Object arg2) {
        System.err.println(marker + format + arg1 + arg2);
    }

    @Override
    public void error(Marker marker, String format, Object... arguments) {
        System.err.println(marker + format + arguments);
    }

    @Override
    public void error(Marker marker, String msg, Throwable t) {
        System.err.println(marker + msg);
        t.printStackTrace();
    }
}